home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacAddict 116
/
MacAddict 116 (Mac Power Pack)(theDISC)(April 2006).iso
/
Software
/
Internet & Communication
/
Jon's Phone Tool.dmg
/
Goodies
/
JPT Vonage Account Toggle.applescript
< prev
next >
Wrap
Text File
|
2005-11-12
|
1KB
|
30 lines
using terms from application "Jon's Phone Tool"
--modify the information in these accounts accordingly, account_name can be whatever you wish:
property account_1 : {account_name:"Account 1", property_record:{Vonage username:"", Vonage password:"", Vonage number:""}}
property account_2 : {account_name:"Account 2", property_record:{Vonage username:"", Vonage password:"", Vonage number:""}}
end using terms from
--**************************************--
-- don't adjust anything below this part of the script --
--**************************************--
property last_account : missing value
if last_account = missing value then set last_account to account_name of account_2
if last_account = (account_name of account_2) then
set property_record to property_record of account_1
set account_name to account_name of account_1
else
set property_record to property_record of account_2
set account_name to account_name of account_2
end if
set last_account to account_name
tell application "Jon's Phone Tool" to set Vonage settings to property_record
tell application "System Events"
activate
display dialog "JPT will now dial via Vonage using account " & account_name & "." buttons {"OK"} default button 1 with icon 1 giving up after 5
end tell